package com.arui.test;

import com.arui.rpc.annotation.ServiceScan;
import com.arui.rpc.serializer.CommonSerializer;
import com.arui.rpc.serializer.ProtobufSerializer;
import com.arui.rpc.transport.RpcServer;
import com.arui.rpc.api.HelloService;

import com.arui.rpc.registry.ServiceRegistry;
import com.arui.rpc.serializer.JsonSerializer;
import com.arui.rpc.transport.netty.server.NettyServer;


/**
 * @Auther: zhanyurui
 * @Date: 2021-08-08 19:03
 * @Description:   测试用服务提供方（服务端）
 */
@ServiceScan
public class NettyTestServer {
    public static void main(String[] args) {
        RpcServer server = new NettyServer("127.0.0.1", 8080, CommonSerializer.PROTOBUF_SERIALIZER);
        server.start();
    }
}
